/* 
 *   Date       Developer         Description
 *   2017-09-07 周成功      新建
 * 
 *
 *   Classname:  com.titan.demo.commons.dao.IPlayLogDao
 * 
 *   The source code contained in this listing is proprietary to
 *   Baby Footmarks studio.
 * 
 *   Unauthorized copying, adaptation, distribution, use, or display
 *   is strictly prohibited.
 *   This software is Copyright 2017 Baby Footmarks studio.
 */
package com.titan.demo.commons.dao;

import java.util.List;
import com.titan.core.utils.object.Args;
import com.titan.demo.commons.domain.PlayLogDomain;
import com.titan.demo.commons.Where.PlayLogWhere;


/**
 * 根据表play_log创建的IDao类
 *
 * @author 周成功
 *
 */
public interface IPlayLogDao {
    public PlayLogDomain findByKey(String token, String id) throws Exception;
    public PlayLogDomain findByKey(String token, PlayLogDomain domain) throws Exception;

    public List<PlayLogDomain> findByWhere(String token, String[] fields, String where) throws Exception;
    public List<PlayLogDomain> findByWhere(String token, String[] fields, String where, int pageIndex, int pageSize) throws Exception;
    public List<PlayLogDomain> findByWhere(String token, String[] fields, String[][] where) throws Exception;
    public List<PlayLogDomain> findByWhere(String token, String[] fields, String[][] where, int pageIndex, int pageSize) throws Exception;
    public List<PlayLogDomain> findByWhere(String token, String[] fields, PlayLogWhere where) throws Exception;
    public List<PlayLogDomain> findByWhere(String token, String[] fields, PlayLogWhere where, int pageIndex, int pageSize) throws Exception;
    public List<PlayLogDomain> findByWhere(String token, String[] fields, PlayLogDomain domain) throws Exception;
    public List<PlayLogDomain> findByWhere(String token, String[] fields, PlayLogDomain domain, int pageIndex, int pageSize) throws Exception;
    
    public List<PlayLogDomain> findByWhere(String token, String where) throws Exception;
    public List<PlayLogDomain> findByWhere(String token, String where, int pageIndex, int pageSize) throws Exception;
    public List<PlayLogDomain> findByWhere(String token, String[][] where) throws Exception;
    public List<PlayLogDomain> findByWhere(String token, String[][] where, int pageIndex, int pageSize) throws Exception;
    public List<PlayLogDomain> findByWhere(String token, PlayLogWhere where) throws Exception;
    public List<PlayLogDomain> findByWhere(String token, PlayLogWhere where, int pageIndex, int pageSize) throws Exception;
    public List<PlayLogDomain> findByWhere(String token, PlayLogDomain where) throws Exception;
    public List<PlayLogDomain> findByWhere(String token, PlayLogDomain where, int pageIndex, int pageSize) throws Exception;
    
    public int findCountByWhere(String token, String where) throws Exception;
    public int findCountByWhere(String token, String[][] where) throws Exception;
    public int findCountByWhere(String token, PlayLogWhere where) throws Exception;
    public int findCountByWhere(String token, PlayLogDomain where) throws Exception;
    
    public int insert(String token, PlayLogDomain domain) throws Exception;

    public int updateByKey(String token, String id, Args args) throws Exception;
    public int updateByKey(String token, String id, String field, Object value) throws Exception;
    public int updateByKey(String token, PlayLogDomain domain, String[] updateFields, String[] useSysdate) throws Exception;
    public int updateByKeySetAll(String token, PlayLogDomain domain) throws Exception;
    public int updateByKeySetNull(String token, String id, String...fields) throws Exception;

    public int deleteByKey(String token, String id) throws Exception;
    public int deleteByKey(String token, PlayLogDomain domain) throws Exception;
    public int delete(String token, String where) throws Exception;
    public int delete(String token, String[][] where) throws Exception;
    public int delete(String token, PlayLogWhere where) throws Exception;
    public int delete(String token, PlayLogDomain where) throws Exception;

    public int closeByKey(String token, String id) throws Exception;
    public int openByKey(String token, String id) throws Exception;
}

